SRCS=$(wildcard *.tex)
INDEX=final_report
OUT=final_report.pdf
AUXS=$(SRCS:.tex=.aux) $(SRCS:.tex=.log) $(SRCS:.tex=.out) $(SRCS:.tex=.dvi) \
     $(SRCS:.tex=.bbl) $(SRCS:.tex=.blg) $(OUT)
REFS=
GFXS=$(wildcard *.eps)

all : $(OUT)

$(OUT) : refs $(SRCS) $(GFXS)
	latex $(INDEX)
	latex $(INDEX)
	dvips -P cmz -f $(INDEX) | ps2pdf - $(OUT)

refs : $(REFS)
	latex $(INDEX)
	- bibtex $(INDEX)

clean :
	-@ rm -f $(AUXS) *~

.PHONY : all refs clean
